
 <?php
 include_once '../bcrud/noticias_crud.php';
 $noticias_crud= new noticias_crud();
 session_start();
 
 if(isset($_SESSION['id']) AND isset($_SESSION['nombre_usuario']) ){
 
 
 ?>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Municipalidad de Ciudad del Este</title>
<!--<link rel="stylesheet" href="../css/screen.css" type="text/css" media="screen" title="default" />-->
<link rel="stylesheet" href="../css/screen.css" type="text/css" media="screen" title="default" />
<!--[if IE]>
<link rel="stylesheet" media="all" type="text/css" href="css/pro_dropline_ie.css" />
<![endif]-->
<!--Editor de Texto tynymce-->
<script type="text/javascript" src="../js/tinymce/js/tinymce/tinymce.min.js"></script>
<!--Funciones para validar los formularios-->
<script language="javascript" type="text/javascript" src="js/blogin/bformoperation.js"></script>
<!--  jquery core -->
<!--<script src="../js/jquery/jquery-1.4.1.min.js" type="text/javascript"></script>-->
<script src="../js/jquery/jquery-1.4.1.min.js" type="text/javascript"></script>

<!--  checkbox styling script -->
<script src="../js/jquery/ui.core.js" type="text/javascript"></script>
<script src="../js/jquery/ui.checkbox.js" type="text/javascript"></script>
<script src="../js/jquery/jquery.bind.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
	$('input').checkBox();
	$('#toggle-all').click(function(){
 	$('#toggle-all').toggleClass('toggle-checked');
	$('#mainform input[type=checkbox]').checkBox('toggle');
	return false;
	});
});
</script>  

<![if !IE 7]>

<!--  styled select box script version 1 -->
<script src="../js/jquery/jquery.selectbox-0.5.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
	$('.styledselect').selectbox({ inputClass: "selectbox_styled" });
});
</script>
 

<![endif]>

<!--  styled select box script version 2 --> 
<script src="../js/jquery/jquery.selectbox-0.5_style_2.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
	$('.styledselect_form_1').selectbox({ inputClass: "styledselect_form_1" });
	$('.styledselect_form_2').selectbox({ inputClass: "styledselect_form_2" });
});
</script>

<!--  styled select box script version 3 --> 
<script src="../js/jquery/jquery.selectbox-0.5_style_2.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
	$('.styledselect_pages').selectbox({ inputClass: "styledselect_pages" });
});
</script>

<!--  styled file upload script --> 
<script src="../js/jquery/jquery.filestyle.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
  $(function() {
      $("input.file_1").filestyle({ 
          image: "../images/forms/choose-file.gif",
          imageheight : 21,
          imagewidth : 78,
          width : 310
      });
  });
</script>

<!-- Custom jquery scripts -->
<script src="../js/jquery/custom_jquery.js" type="text/javascript"></script>
 
<!-- Tooltips -->
<script src="../js/jquery/jquery.tooltip.js" type="text/javascript"></script>
<script src="../js/jquery/jquery.dimensions.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
	$('a.info-tooltip ').tooltip({
		track: true,
		delay: 0,
		fixPNG: true, 
		showURL: false,
		showBody: " - ",
		top: -35,
		left: 5
	});
});
</script> 


<!--  date picker script -->
<link rel="stylesheet" href="../css/datePicker.css" type="text/css" />
<script src="../js/jquery/date.js" type="text/javascript"></script>
<script src="../js/jquery/jquery.datePicker.js" type="text/javascript"></script>
<script type="text/javascript" charset="utf-8">
        $(function()
{

// initialise the "Select date" link
$('#date-pick')
	.datePicker(
		// associate the link with a date picker
		{
			createButton:false,
			startDate:'01/01/2005',
			endDate:'31/12/2020'
		}
	).bind(
		// when the link is clicked display the date picker
		'click',
		function()
		{
			updateSelects($(this).dpGetSelected()[0]);
			$(this).dpDisplay();
			return false;
		}
	).bind(
		// when a date is selected update the SELECTs
		'dateSelected',
		function(e, selectedDate, $td, state)
		{
			updateSelects(selectedDate);
		}
	).bind(
		'dpClosed',
		function(e, selected)
		{
			updateSelects(selected[0]);
		}
	);
	
var updateSelects = function (selectedDate)
{
	var selectedDate = new Date(selectedDate);
	$('#d option[value=' + selectedDate.getDate() + ']').attr('selected', 'selected');
	$('#m option[value=' + (selectedDate.getMonth()+1) + ']').attr('selected', 'selected');
	$('#y option[value=' + (selectedDate.getFullYear()) + ']').attr('selected', 'selected');
}
// listen for when the selects are changed and update the picker
$('#d, #m, #y')
	.bind(
		'change',
		function()
		{
			var d = new Date(
						$('#y').val(),
						$('#m').val()-1,
						$('#d').val()
					);
			$('#date-pick').dpSetSelected(d.asString());
		}
	);

// default the position of the selects to today
var today = new Date();
updateSelects(today.getTime());

// and update the datePicker to reflect it...
$('#d').trigger('change');
});
</script>

<!-- MUST BE THE LAST SCRIPT IN <HEAD></HEAD></HEAD> png fix -->
<script src="../js/jquery/jquery.pngFix.pack.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
$(document).pngFix( );
});
</script>

<!--Iniciamos el tinymce-->
<script>
       /*tinymce.init({selector:'textarea', plugins: "image preview link",convert_urls: false,remove_script_host: false,
            relative_urls: false,
    toolbar: "preview | undo redo | styleselect | bold italic | link image"});        */
    tinymce.init({
    selector: "#textarea",
    plugins: 'link image code',
    convert_urls: false
});

    
       
</script>
<!--Funcion para validar el formulario de nueva noticia-->
<script>
  function validar_form_nueva_noticia(){
        var formulario_noticia=document.form;
        if (formulario_noticia.titulo.value==0){
                    alert("Ingrese un titulo para la noticia");
                    formulario_noticia.titulo.value="";
                    formulario_noticia.titulo.focus();
                    return false;

        }

        //Para validar el textarea que utiliza tinymce.
        var content = tinyMCE.get('textarea').getContent(); // textarea= textarea id
            if( content == "" || content == null){
                // $("#msg_error").html("* Can't add an empty message");
             alert("Ingrese el texto de la noticia");
             return false;
       }


        formulario_noticia.submit();
    }
 </script>   
</head>
<body> 
    <!--Verificamos si se inicio la sesion antes de mostrar el contenido-->
<!-- Start: page-top-outer -->
<div id="page-top-outer">    

<!-- Start: page-top -->
<div id="page-top">
        
	<!-- start logo -->
	<div id="logo">
	<!--<a href=""><img src="../images/shared/logo.png" width="156" height="40" alt="" /></a>-->
        <h1>www.municipalidadcde.gov.py</h1>
       
      
        
	</div>
	<!-- end logo -->
	
	<!--  start top-search -->
	<div id="top-search">
            
             <h3><?php echo "Usuario: ". $_SESSION['nombre_usuario']."-".$_SESSION['id']; ?></h3>
<!--		<table border="0" cellpadding="0" cellspacing="0">
		<tr>
		<td><input type="text" value="Search" onblur="if (this.value=='') { this.value='Search'; }" onfocus="if (this.value=='Search') { this.value=''; }" class="top-search-inp" /></td>
		<td>
		<select  class="styledselect">
			<option value="">Inicio</option>
			<option value="">Noticias</option>
			<option value="">Imagenes</option>
			<option value="">Clients</option>
			<option value="">News</option>
		</select> 
		</td>
		<td>
		<input type="image" src="../images/shared/top_search_btn.gif"  />
		</td>
		</tr>
		</table>-->
	</div>
 	<!--  end top-search -->
 	<div class="clear"></div>

</div>
<!-- End: page-top -->

</div>
<!-- End: page-top-outer -->
	
<div class="clear">&nbsp;</div>
 
<!--  start nav-outer-repeat................................................................................................. START -->
<div class="nav-outer-repeat"> 
<!--  start nav-outer -->
<div class="nav-outer"> 

		<!-- start nav-right -->
		<div id="nav-right">
		
			<div class="nav-divider">&nbsp;</div>                        
			<div class="showhide-account"><img src="../images/shared/nav/nav_myaccount.gif" width="93" height="14" alt="" /></div>
			<div class="nav-divider">&nbsp;</div>
			<a href="../controlador/C_logout.php" id="logout"><img src="../images/shared/nav/nav_logout.gif" width="64" height="14" alt="" /></a>
			<div class="clear">&nbsp;</div>
		
			<!--  start account-content -->	
			<div class="account-content">
			<div class="account-drop-inner">
				<a href="" id="acc-settings">Settings</a>
				<div class="clear">&nbsp;</div>
				<div class="acc-line">&nbsp;</div>
				<a href="" id="acc-details">Personal details </a>
				<div class="clear">&nbsp;</div>
				<div class="acc-line">&nbsp;</div>
				<a href="" id="acc-project">Project details</a>
				<div class="clear">&nbsp;</div>
				<div class="acc-line">&nbsp;</div>
				<a href="" id="acc-inbox">Inbox</a>
				<div class="clear">&nbsp;</div>
				<div class="acc-line">&nbsp;</div>
				<a href="" id="acc-stats">Statistics</a> 
			</div>
			</div>
			<!--  end account-content -->
		
		</div>
		<!-- end nav-right -->


		<!--  start nav -->
		<div class="nav">
		<div class="table">
		
		<ul class="current"><li><a href="home.php?home=1"><b>Noticias</b><!--[if IE 7]><!--></a><!--<![endif]-->
		<!--[if lte IE 6]><table><tr><td><![endif]-->
<!--		<div class="select_sub">
			<ul class="sub">
				<li><a href="#nogo">Dashboard Details 1</a></li>
				<li><a href="#nogo">Dashboard Details 2</a></li>
				<li><a href="#nogo">Dashboard Details 3</a></li>
			</ul>
		</div>-->
		<!--[if lte IE 6]></td></tr></table></a><![endif]-->
		</li>
		</ul>
		
		<div class="nav-divider">&nbsp;</div>
                <ul class="select"><li><a href="#nogo"><b>Encuestas</b><!--[if IE 7]><!--></a><!--<![endif]-->
		<!--[if lte IE 6]><table><tr><td><![endif]-->
<!--		<div class="select_sub">
			<ul class="sub">
				<li><a href="#nogo">Dashboard Details 1</a></li>
				<li><a href="#nogo">Dashboard Details 2</a></li>
				<li><a href="#nogo">Dashboard Details 3</a></li>
			</ul>
		</div>-->
		<!--[if lte IE 6]></td></tr></table></a><![endif]-->
		</li>
		</ul>
		
		<div class="nav-divider">&nbsp;</div>
		                    
<!--		<ul class="current"><li><a href="#nogo"><b></b>[if IE 7]><!</a><![endif]
		[if lte IE 6]><table><tr><td><![endif]
		<div class="select_sub show">
			<ul class="sub">
				<li><a href="#nogo">View all prod</a></li>
				<li class="sub_show"><a href="#nogo">Add product</a></li>
				<li><a href="#nogo">Delete products</a></li>
			</ul>
		</div>
		[if lte IE 6]></td></tr></table></a><![endif]
		</li>
		</ul>
		
		<div class="nav-divider">&nbsp;</div>-->
		
		<ul class="select"><li><a href="#imagenes"><b>Imagenes</b><!--[if IE 7]><!--></a><!--<![endif]-->
		<!--[if lte IE 6]><table><tr><td><![endif]-->
<!--		<div class="select_sub">
			<ul class="sub">
				<li><a href="#nogo">Categories Details 1</a></li>
				<li><a href="#nogo">Categories Details 2</a></li>
				<li><a href="#nogo">Categories Details 3</a></li>
			</ul>
		</div>-->
		<!--[if lte IE 6]></td></tr></table></a><![endif]-->
		</li>
		</ul>
		
		<div class="nav-divider">&nbsp;</div>
		<ul class="select"><li><a href="home.php?user=1"><b>Usuarios</b><!--[if IE 7]><!--></a><!--<![endif]-->
		<!--[if lte IE 6]><table><tr><td><![endif]-->
<!--		<div class="select_sub">
			<ul class="sub">
				<li><a href="#nogo">Categories Details 1</a></li>
				<li><a href="#nogo">Categories Details 2</a></li>
				<li><a href="#nogo">Categories Details 3</a></li>
			</ul>
		</div>-->
		<!--[if lte IE 6]></td></tr></table></a><![endif]-->
		</li>
		</ul>
		
		
		<div class="nav-divider">&nbsp;</div>
                
		
<!--		<ul class="select"><li><a href="#nogo"><b>News</b>[if IE 7]><!</a><![endif]
		[if lte IE 6]><table><tr><td><![endif]
		<div class="select_sub">
			<ul class="sub">
				<li><a href="#nogo">News details 1</a></li>
				<li><a href="#nogo">News details 2</a></li>
				<li><a href="#nogo">News details 3</a></li>
			</ul>
		</div>
		[if lte IE 6]></td></tr></table></a><![endif]
		</li>
		</ul>-->
		
		<div class="clear"></div>
		</div>
		<div class="clear"></div>
		</div>
		<!--  start nav -->

</div>
<div class="clear"></div>
<!--  start nav-outer -->
</div>
<!--  start nav-outer-repeat................................................... END -->

 <div class="clear"></div>
 
<!-- start content-outer ........................................................................................................................START -->
<div id="content-outer">
<!-- start content -->
<div id="content">

	<!--  start page-heading -->
	<div id="page-heading">
            <?php if(isset($_GET['home']) AND $_GET['home']==1 ){ ?>
		<h2>Noticias</h2>
            <?php }?>
            <?php if(isset($_GET['user']) AND $_GET['user']==1 ){ ?>
		<h2>Usuarios</h2>
            <?php }?>
	</div>
	<!-- end page-heading -->

	<table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
	<tr>
		<th rowspan="3" class="sized"><img src="../images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
		<th class="topleft"></th>
		<td id="tbl-border-top">&nbsp;</td>
		<th class="topright"></th>
		<th rowspan="3" class="sized"><img src="../images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
	</tr>
	<tr>
		<td id="tbl-border-left"></td>
		<td>
		<!--  start content-table-inner ...................................................................... START -->
		<div id="content-table-inner">
		
			<!--  start table-content  -->
			<div id="table-content">
			<!--Condicion para mostrar la lista de noticias-->
                         <?php if(isset($_GET['home']) AND $_GET['home']==1 ){ ?>
                            <!--  start product-table ..................................................................................... -->
				<form id="mainform" action="">
                                    <!-------------------------------------------------------------------------------------- -->
                                     <?php 
                                        if (isset($_GET["pos"])){
                                                $inicio=$_GET["pos"];
//                                                $query="select a.idarticulo,a.titulo,a.fecha,a.comentario,u.usuario, c.nombre  
////                                              from articulo a JOIN usuarios u ON a.idusuario=u.idusuario JOIN categoria c ON a.idcategoria=c.idcategoria
////                                              order by idarticulo desc limit $inicio,5";
                                                $query="SELECT id_noticia,titulo,usuario_codigo,fecha from noticia  order by id_noticia desc limit $inicio,5";
                                                
                                        }else{
                                                $inicio=0;
                                                $query="SELECT id_noticia,titulo,usuario_codigo,fecha from noticia  order by id_noticia desc limit $inicio,5";
                                        }
                                         
                                        $array_noticias=$noticias_crud->get_lista_contenido($query);
                                         //echo count($array_articulos);
                                        if(count($array_noticias)==0){
                                             echo "<h3>No hay registros.</h3>";
                                        }else{
                                           // print_r($array_noticias);?>

                                    <!-------------------------------------------------------------------------------------- -->
                                    <table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
                                        <tr>
					<!--<th class="table-header-check"><a id="toggle-all" ></a> </th>-->
					<th class="table-header-repeat line-left minwidth-1"><a href="">Titulo</a>	</th>
					<!--<th class="table-header-repeat line-left minwidth-1"><a href="">Categoria</a></th>-->
					<th class="table-header-repeat line-left"><a href="">Fecha</a></th>
					<th class="table-header-repeat line-left"><a href="">Codigo_Usuario</a></th>
					<th class="table-header-options line-left"><a href="">Options</a></th>
                                        </tr>
                                        <!--Mostramos la lista de las noticias recuperadas-->
                                        <?php  foreach ($array_noticias as $valor) { ?>	
                                        <tr>
                                        <!--Aqui recorremos el array mostrando todos los resultados-->
<!--					<td><input  type="checkbox"/></td>-->
					<td><?php echo $valor['titulo']; ?></td>
<!--					<td>Economia</td>-->
					<td><?php echo $valor['fecha']; ?></td>
					<td><?php echo $valor['usuario_codigo']; ?></td>
					<td class="options-width">
					<a href="" title="Edit" class="icon-1 info-tooltip"></a>
					<a href="" title="Eliminar" class="icon-2 info-tooltip"></a>
<!--					<a href="" title="Edit" class="icon-3 info-tooltip"></a>
					<a href="" title="Edit" class="icon-4 info-tooltip"></a>
					<a href="" title="Edit" class="icon-5 info-tooltip"></a>-->
					</td>
                                        </tr>
                                        <?php } ?>
                                    </table>
                                    <?php } ?>	
				</form>
                            <a  href="home.php?noticia=1">Nueva Noticia</a>
                        <!--  start paging..................................................... -->
			<table border="0" cellpadding="0" cellspacing="0" id="paging-table">
			<tr>
			<td>
				<?php if($inicio==0){?>
                                    Anteriores Publicaciones
                                <?php } else {
                                    //EL "2" puede cambiar, depende de cuantos post al mismo tiempo se quiere mostrar.
                                    //Si se cambia el valor 2, tambien se debe cambiar en la consulta "LIMIT inicio,valor".
                                    $anterior=$inicio-5; ?>
                                    <a href="?pos=<?php echo $anterior; ?>&home=1" title="Anteriores Publicaciones"> Anteriores Publicaciones</a>
                                <?php } ?>
			</td>
                            <td> &nbsp;&nbsp;||&nbsp;&nbsp;</td>    
			<td>
                                <?php
                                            //echo count($array_noticias);
                                            if (count($array_noticias)==5)
                                            {
                                                    $proximo=$inicio+5;
                                                    //echo $proximo;
                                                    ?>
                                                    <a href="?pos=<?php echo $proximo; ?>&home=1" title="Siguientes Publicaciones">Siguientes Publicaciones</a>
                                                    <?php
                                            }else
                                            {
                                                    ?>
                                                    Siguientes Publicaciones
                                                    <?php
                                            }

                                            ?>
			</td>
			</tr>
			</table>
			<!--  end paging................ -->
                        <?php }?>
                            <!--Condicion para mostrar lista de usuarios-->
                         <?php if(isset($_GET['user']) AND $_GET['user']==1 ){ ?>
                            <form id="mainform">
                                    <table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
                                        <tr>
					<!--<th class="table-header-check"><a id="toggle-all" ></a> </th>-->
					<th class="table-header-repeat line-left minwidth-1"><a href="">Codigo</a>	</th>
					<th class="table-header-repeat line-left minwidth-1"><a href="">Nombre</a></th>
					<th class="table-header-repeat line-left"><a href="">Fecha de Ingreso</a></th>
					
					<th class="table-header-options line-left"><a href="">Options</a></th>
				</tr>
                                <tr>
<!--					<td><input  type="checkbox"/></td>-->
					<td>12145</td>
					<td>Martin Serratti</td>
					<td><a href="">2014-04-03</a></td>
					
					<td class="options-width">
					<a href="" title="Edit" class="icon-1 info-tooltip"></a>
					<a href="" title="Eliminar" class="icon-2 info-tooltip"></a>
<!--					<a href="" title="Edit" class="icon-3 info-tooltip"></a>
					<a href="" title="Edit" class="icon-4 info-tooltip"></a>
					<a href="" title="Edit" class="icon-5 info-tooltip"></a>-->
					</td>
				</tr>
                                        
                                         <tr>
<!--					<td><input  type="checkbox"/></td>-->
					<td>12145</td>
					<td>Martin Serratti</td>
					<td><a href="">2014-04-03</a></td>
					
					<td class="options-width">
					<a href="" title="Edit" class="icon-1 info-tooltip"></a>
					<a href="" title="Eliminar" class="icon-2 info-tooltip"></a>
<!--					<a href="" title="Edit" class="icon-3 info-tooltip"></a>
					<a href="" title="Edit" class="icon-4 info-tooltip"></a>
					<a href="" title="Edit" class="icon-5 info-tooltip"></a>-->
					</td>
				</tr>
                                    </table>
                               
				</form>
                            <a  href="home.php?user=2">Nuevo Usuario</a>
                            <!--  start paging..................................................... -->
			<table border="0" cellpadding="0" cellspacing="0" id="paging-table">
			<tr>
			<td>
				Anteriores Publicaciones
			</td>
                            <td> &nbsp;&nbsp;||&nbsp;&nbsp;</td>    
			<td>
                                Siguientes Publicaciones
			</td>
			</tr>
			</table>
			<!--  end paging................ -->
                         <?php }?>
                            
                           <?php if(isset($_GET['user']) AND $_GET['user']==2 ){ ?>
                                <table border="0" width="100%" cellpadding="0" cellspacing="0">
                                <tr valign="top">
                                    <td>


                                    <!-- start id-form -->
                                    <table border="0" cellpadding="0" cellspacing="0"  id="id-form">
                                    <tr>
                                            <th valign="top">Codigo de Funcionario:</th>
                                            <td><input type="text" class="inp-form" /></td>
                                            <td></td>
                                    </tr>
                                    <tr>
                                            <th valign="top">Nombre Completo:</th>
                                            <td><input type="text" class="inp-form" /></td>
                                            <!--<td><input type="text" class="inp-form-error" /></td>-->
                    <!--			<td>
                                            <div class="error-left"></div>
                                            <div class="error-inner">This field is required.</div>
                                            </td>-->
                                    </tr>
                                        <tr>
                                            <th valign="top">Password:</th>
                                            <td><input type="password" class="inp-form" /></td>
                                            <td></td>
                                    </tr>
                                    <tr>
                                            <th valign="top">Repita su Password:</th>
                                            <td><input type="password" class="inp-form" /></td>
                                            <td></td>
                                    </tr>
                                    <tr>
                                    <th valign="top">Rol:</th>
                                    <td>	
                                    <select  class="styledselect_form_1">
                                            <option value="">Administrador</option>
                                            <option value="">Editor</option>

                                    </select>
                                    </td>
                                    <td></td>
                                    </tr>



                                        <tr>
                                                <th>&nbsp;</th>
                                                <td valign="top">
                                                        <input type="button" value="" class="form-submit" />
                                                        <input type="reset" value="" class="form-reset"  />
                                                </td>
                                                <td></td>
                                        </tr>
                                        </table>
                                <!-- end id-form  -->

                                </td>

                    </tr>
                    <tr>
                    <td><img src="../images/shared/blank.gif" width="695" height="1" alt="blank" /></td>
                    <td></td>
                    </tr>
                    </table>

                    <div class="clear"></div>
                           <?php }?>
                           <?php if(isset($_GET['noticia']) AND $_GET['noticia']==1 ){ ?>
<!--                    <p>Nuevas noticias</p>-->
                     <table border="0" width="100%" cellpadding="0" cellspacing="0">
                                <tr valign="top">
                                    <td>


                                    <!-- start id-form -->
                                    <form  name="form" class="login" action="../controlador/C_noticias.php"  method="POST">
                                    <table border="0" cellpadding="0" cellspacing="0"  id="id-form">
                                    <tr>
                                            <th valign="top">Titulo:</th>
                                            <td><input type="text" name="titulo" class="inp-form" /></td>
                                            <td></td>
                                    </tr>
                                    <tr>
                                            <th valign="top">Texto:</th>
                                            <td><textarea name="texto" id="textarea" class="textarea" rows="10" ></textarea></td>
                                            <input type="hidden" name="insertar" value="si" />
                                            <!--<td><input type="text" class="inp-form-error" /></td>-->
                    <!--			<td>
                                            <div class="error-left"></div>
                                            <div class="error-inner">This field is required.</div>
                                            </td>-->
                                  
                                    <td></td>
                                    </tr>



                                        <tr>
                                                <th>&nbsp;</th>
                                                <td valign="top">

                                                    <button type="button"  class="form-submit" title="Login" onclick="validar_form_nueva_noticia()">Login</button>   
                                                    <button type="reset"  class="form-reset"></button>
                                                    
                                                </td>
                                                <td></td>
                                        </tr>
                                        </table>
                                  </form>
                                <!-- end id-form  -->
                               
                               
                                </td>

                    </tr>
                    <tr>
                    <td><img src="../images/shared/blank.gif" width="695" height="1" alt="blank" /></td>
                    <td></td>
                    </tr>
                    </table>
                            <?php }?>
			</div>
			<!--  end content-table  -->
			
			<div class="clear"></div>
		 
		</div>
		<!--  end content-table-inner ............................................END  -->
		</td>
		<td id="tbl-border-right"></td>
	</tr>
	<tr>
		<th class="sized bottomleft"></th>
		<td id="tbl-border-bottom">&nbsp;</td>
		<th class="sized bottomright"></th>
	</tr>
	</table>
	<div class="clear">&nbsp;</div>

</div>
<!--  end content -->
<div class="clear">&nbsp;</div>
</div>
<!--  end content-outer........................................................END -->

<div class="clear">&nbsp;</div>
    
<!-- start footer -->         
<div id="footer">
	<!--  start footer-left -->
	<div id="footer-left">
	
	 &copy; Municipalidad de Ciudad del Este 2014.</div>
	<!--  end footer-left -->
	<div class="clear">&nbsp;</div>
</div>
<!-- end footer -->
 
</body>
</html>
<?php
}else{
    echo "
	<script type='text/javascript'>
	alert('Debe loguearse primero para acceder a este contenido');
	window.location='../index.php';
	</script>
	";
}

?>